/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.PassengerNotifyInfo;
import com.sasis.dao.PassengerNotifyInfoDao;
import com.sasis.service.PassengerNotifyInfoManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class PassengerNotifyInfoManagerImpl extends BaseManager implements PassengerNotifyInfoManager {
    private PassengerNotifyInfoDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setPassengerNotifyInfoDao(PassengerNotifyInfoDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.PassengerNotifyInfoManager#getPassengerNotifyInfos(com.sasis.model.PassengerNotifyInfo)
     */
    public List getPassengerNotifyInfos(final PassengerNotifyInfo passengerNotifyInfo) {
        return dao.getPassengerNotifyInfos(passengerNotifyInfo);
    }

    /**
     * @see com.sasis.service.PassengerNotifyInfoManager#getPassengerNotifyInfo(String id)
     */
    public PassengerNotifyInfo getPassengerNotifyInfo(final String id) {
        return dao.getPassengerNotifyInfo(new Integer(id));
    }
    /**
     * @see com.sasis.service.PassengerNotifyInfoManager#getPassengerNotifyInfo(String id)
     */
    public PassengerNotifyInfo getSearchPassengerNotifyInfo(final String id) {
        return dao.getSearchPassengerNotifyInfo(new Integer(id));
    }

    /**
     * @see com.sasis.service.PassengerNotifyInfoManager#savePassengerNotifyInfo(PassengerNotifyInfo passengerNotifyInfo)
     */
    public int savePassengerNotifyInfo(PassengerNotifyInfo passengerNotifyInfo) {
       return dao.savePassengerNotifyInfo(passengerNotifyInfo);
    }
    
    /**
     * @see com.sasis.service.PassengerNotifyInfoManager#savePassengerNotifyInfo(PassengerNotifyInfo passengerNotifyInfo)
     */
    public void savePassengerNotifyInfos(PassengerNotifyInfo passengerNotifyInfo) {
        dao.savePassengerNotifyInfos(passengerNotifyInfo);
    }

    /**
     * @see com.sasis.service.PassengerNotifyInfoManager#removePassengerNotifyInfo(String id)
     */
    public void removePassengerNotifyInfo(PassengerNotifyInfo passengerNotifyInfo) {
        dao.removePassengerNotifyInfo( passengerNotifyInfo);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
